package com.hd.entity.activiti.example;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import com.hd.entity.activiti.BaseVO;
/**
 * 收公文
 * @author hzhh123
 * 2018年10月11日下午2:14:44
 */
@Entity
@Table(name="RECEIVE_DOCUMENT")
public class ReceiveDocument extends BaseVO implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -728272932842530932L;
	@Id
	@Column(name="ID")
	private String id;
	@Column(name="PROCESS_INSTANCE_ID")
	private String processInstanceId; // 流程实例Id
	/**
	 * 申请人id
	 */
	@Column(name="USERID")
	private String userid;
	/**
	 * 申请人
	 */
	@Column(name="USER_NAME")
	private String userName;
	/**
	 * 审批状态
	 */
	@Column(name="STATUS")
	private Integer status; // 审核状态 未提交 审核中 审核通过 审核未通过
	
	/**
	 * 标题
	 */
	@Column(name="TITLE")
	private String title;
	/**
	 * 公文类型
	 */
	@Column(name="DOC_TYPE")
	private String docType;
	@Column(name="DOC_TYPE_NAME")
	private String docTypeName;
	/**
	 * 紧急程度
	 */
	@Column(name="EMERGENCY_LEVEL")
	private String emergencyLevel;
	/**
	 * 来文时间
	 */
	@Column(name="FROM_DATE")
	@Temporal(TemporalType.DATE)
	private Date fromDate;
	
	@Transient
	private Date fromDateStart;
	@Transient
	private Date fromDateEnd;
	/**
	 * 来文号
	 */
	@Column(name="DOC_NO")
	private String docNo;
	/**
	 * 来文单位
	 */
	@Column(name="FROM_UNIT")
	private String fromUnit;
	/**
	 * 正文
	 */
	@Column(name="CONTENT_TEXT")
	private String contentText;
	/**
	 * 附件
	 */
	@Column(name="ATTACH_ID")
	private String attachId;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getProcessInstanceId() {
		return processInstanceId;
	}
	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDocType() {
		return docType;
	}
	public void setDocType(String docType) {
		this.docType = docType;
	}
	public String getDocTypeName() {
		return docTypeName;
	}
	public void setDocTypeName(String docTypeName) {
		this.docTypeName = docTypeName;
	}
	public String getEmergencyLevel() {
		return emergencyLevel;
	}
	public void setEmergencyLevel(String emergencyLevel) {
		this.emergencyLevel = emergencyLevel;
	}
	public Date getFromDate() {
		return fromDate;
	}
	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}
	public String getDocNo() {
		return docNo;
	}
	public void setDocNo(String docNo) {
		this.docNo = docNo;
	}
	public String getFromUnit() {
		return fromUnit;
	}
	public void setFromUnit(String fromUnit) {
		this.fromUnit = fromUnit;
	}
	public String getContentText() {
		return contentText;
	}
	public void setContentText(String contentText) {
		this.contentText = contentText;
	}
	public String getAttachId() {
		return attachId;
	}
	public void setAttachId(String attachId) {
		this.attachId = attachId;
	}
	public Date getFromDateStart() {
		return fromDateStart;
	}
	public void setFromDateStart(Date fromDateStart) {
		this.fromDateStart = fromDateStart;
	}
	public Date getFromDateEnd() {
		return fromDateEnd;
	}
	public void setFromDateEnd(Date fromDateEnd) {
		this.fromDateEnd = fromDateEnd;
	}
	
}
